#ifndef __UDP_SERVER_HPP__
#define __UDP_SERVER_HPP__

#include <iostream>
#include <string>
#include <memory>

#include "InetAddr.hpp"

// using namespace LogModule;

const static int defaultport = 8080;


class nocopy
{
public:
    nocopy(){}
    nocopy(const nocopy&) = delete;
    const nocopy& operator = (const nocopy& ) = delete;
    ~nocopy(){}
};



class UdpServer : public nocopy
{
public:
    UdpServer(uint16_t port = defaultport)
        :_addr(port)
        ,_isrunning(false)
    {
    }
private:
    int _sockfd;
    InetAddr _addr;
    bool _isrunning; //服务器运行状态
}


#endif